import request from '@/plugin/axios'
import axios from 'axios'
// 登录
export function AccountLogin (data) {
  return request({
    url: '/login/login',
    method: 'post',
    data
  })
}
//
export function SelectLog (data) {
  return request({
    url: '/userlog/SelectLog',
    method: 'post',
    data
  })
}
//拒绝
export function refuseBond (data) {
  return request({
    url: '/Bond/refuseBond',
    method: 'post',
    data
  })
}
//通过
export function examineBond (data) {
  return request({
    url: '/Bond/examineBond',
    method: 'post',
    data
  })
}
export function BondList (data) {
  return request({
    url: '/Bond/BondList',
    method: 'post',
    data
  })
}
//具体时间点内任务详情
export function TimeTaskinfo (data) {
  return request({
    url: '/task_redis/TimeTaskinfo',
    method: 'post',
    data
  })
}
export function del_repeat_user (phone) {
  return request({
    url: '/brushhand/del_repeat_user',
    method: 'post',
    data:{
      phone:phone
    }
  })
}
export function del_task (id,user_id) {
  return request({
    url: '/taskmonitor/del_task',
    method: 'post',
    data:{
      id:id,
      user_id:user_id
    }
  })
}
//每个时间点有多少任务
export function TimeTaskList (data) {
  return request({
    url: '/task_redis/TimeTaskList',
    method: 'post',
    data
  })
}
//商户插旗 api/cooperations/task_list
export function shop_task (data) {
  return request({
    url: '/cooperations/shop_task',
    method: 'post',
    data
  })
}
//商户插旗列表 api
export function task_list (data) {
  return request({
    url: '/cooperations/task_list',
    method: 'post',
    data
  })
}
//推送
export function taskreminder (data) {
  return request({
    url: '/brushhand/taskreminder',
    method: 'post',
    data
  })
}
//评价处理
export function user_status (data) {
  return request({
    url: '/cooperations/user_status',
    method: 'post',
    data
  })
}
//评价处理Task
export function list_haoping (data) {
  return request({
    url: '/cooperations/list_haoping',
    method: 'post',
    data
  })
}
//打标
export function DbTb (data) {
  return request({
    url: '/tool/DbTb',
    method: 'post',
    data
  })
}
//备注
export function create_task_flag (data) {
  return request({
    url: '/task_flag/create_task_flag',
    method: 'post',
    data
  })
}
//看看各个分组申请人数多少
export function MapList (data) {
  return request({
    url: '/task_redis/MapList',
    method: 'post',
    data
  })
}
//查看redis 分组内任务还剩下多少
export function RedisList (data) {
  return request({
    url: '/task_redis/RedisList',
    method: 'post',
    data
  })
}
//刷手修改
  export function changeInfo (taobao_name,t_name,group,role,invitation,teacher,id,sex,user_status,phone,idcard,jobs,y_money,b_money,password,desc,alpay) {
  return request({
    url: '/brushhand/changeInfo',
    method: 'post',
    data:{
      taobao_name:taobao_name,
      t_name:t_name,
      group:group,
      role:role,
      invitation:invitation,
      teacher:teacher,
      user_id:id,
      sex:sex,
      user_status:user_status,
      phone:phone,
      idcard:idcard,
      jobs:jobs,
      y_money:y_money,
      b_money:b_money,
      password:password,
      desc:desc,
      alpay:alpay,
    }
  })
}
//抖音列表 ExamineDy
export function ExamineDylist (data) {
  return request({
    url: '/examine/ExamineDylist',
    method: 'post',
    data
  })
}
//抖音列表通过
export function ExamineDy (data) {
  return request({
    url: '/examine/ExamineDy',
    method: 'post',
    data
  })
}
//额外任务取消
export function ExtraTaskCancel (data) {
  return request({
    url: '/Extra/ExtraTaskCancel',
    method: 'post',
    data
  })
}
//
export function ExtraTaskList (data) {
  return request({
    url: '/Extra/ExtraTaskList',
    method: 'post',
    data
  })
}
//抖音列表拒绝
export function ExamineDyNo (data) {
  return request({
    url: '/examine/ExamineDyNo',
    method: 'post',
    data
  })
}

export function AutomaticApplication (data) {
  return request({
    url: '/task/AutomaticApplication',
    method: 'post',
    data
  })
}
//拼多多列表 ExamineDy
export function ExaminePddlist (data) {
  return request({
    url: '/examine/ExaminePddlist',
    method: 'post',
    data
  })
}
//拼多多列表通过  ExamineDyNo
export function ExaminePdd (data) {
  return request({
    url: '/examine/ExaminePdd',
    method: 'post',
    data
  })
}
//拼多多列表拒绝
export function ExaminePddNo (data) {
  return request({
    url: '/examine/ExaminePddNo',
    method: 'post',
    data
  })
}
//任务详情
export function monitoringinfo (pay_id) {
  return request({
    url: '/taskmonitor/monitoringinfo',
    method: 'post',
    data:{
      pay_id:pay_id,
    }
  })
}
//配置--修改
export function updateconfig (data) {
  return request({
    url: '/config/updateconfig',
    method: 'post',
    data
  })
}
//
export function tasktkl (tid,task_id,userid) {
  return request({
    url: '/taskmonitor/tasktkl',
    method: 'post',
    data:{
      tid:tid,
      task_id:task_id,
      userid:userid,
    }
  })
}
//商户充值
export function aliExamine (cooperation_id,order_ali,ail_money,ail_note) {
  return request({
    url: '/cooperationbankcards/aliExamine',
    method: 'post',
    data:{
      cooperation_id:cooperation_id,
      order_ali:order_ali,
      ail_money:ail_money,
      ail_note:ail_note,
    }
  })
}
//任务审核
export function update_tasklist (task_bjmoney,create_time,id,task_order,task_shopname,tx_status) {
  return request({
    url: '/taskmonitor/update_tasklist',
    method: 'post',
    data:{
      task_bjmoney:task_bjmoney,
      create_time:create_time,
      id:id,
      task_order:task_order,
      task_shopname:task_shopname,
      tx_status:tx_status,
      // brushhands_tbname:brushhands_tbname
    }
  })
}
//商家消费明细
export function merchantconsumption (page,pageSize,cooperation_id,begintime,endtime) {
  return request({
    url: '/statistics/merchantconsumption ',
    method: 'post',
    data:{
      page:page,
      pagesize:pageSize,
      cooperation_id:cooperation_id,
      begintime:begintime,
      endtime:endtime,
    }
  })
}
// 新增数据
export function create (username,content) {
  return request({
    url: '/userLog/create',
    method: 'post',
    data:{
      username:username,
      content:content,
    }
  })
}

//修改数据
export function update (id,username,content) {
  return request({
    url: '/userLog/update',
    method: 'post',
    data:{
      id:id,
      username:username,
      content:content,
    }
  })
}

// export function select (page,pagesize) {
//   return request({
//     url: '/userLog/select',
//     method: 'post',
//     data:{
//       page:page,
//       pagesize:pagesize,
//     }
//   })
// }
//明细数据
export const select = (page) => {
  return axios.get('/api/userlog/select?page='+page).then(res => res.data);
}
// 商家列表后台
export function pricec (page,page_size) {
  return axios.get('/api/cooperations/Prices?page='+page+'&page_size='+page_size).then(res => res.data);
}
//统计列表接口
export function dateList (begin_time,page,pagesize,end_time,shopname,link,admin) {
  return request({
    url: '/commission/commissionlist',
    method: 'post',
    data:{
      begin_time:begin_time,
      page:page,
      pagesize:pagesize,
      end_time:end_time,
      shopname:shopname,
      link:link,
      admin:admin,
    }
  })
}
//物流 -- 发货表信息表
export function shiplist (page,pagesize,order_num,waybill_num,cooperation_id,time) {
  return request({
    url: '/ship/shiplist',
    method: 'post',
    data:{
      page:page,
      pagesize:pagesize,
      order_num:order_num,
      waybill_num:waybill_num,
      cooperation_id:cooperation_id,
      time:time
    }
  })
}
//师傅信息
export function teacher_user (data) {
  return request({
    url: '/examine/teacher_user',
    method: 'post',
    data:{
      teacher:data
    }
  })
}
//统计接口 statistics
export function dailystatistics (type,shopname,time) {
  return request({
    url: '/statistics/dailystatistics',
    method: 'post',
    data:{
      type:type,
      shopname:shopname,
      time:time
    }
  })
}
// 刷手信息列表
export function Userlist (data) {
  return request({
    url: '/examine/userlist',
    method: 'post',
    data
  })
}
//取消任务
export function canceltask (task_id) {
  return request({
    url: '/task/canceltask',
    method: 'post',
    data:{
      task_id:task_id
    }
  })
}
//操作任务
export function assigntask (task_id,tb_name) {
  return request({
    url: '/task/assigntask',
    method: 'post',
    data:{
      task_id:task_id,
      tb_name:tb_name
    }
  })
}
//刷手拒绝
export function SSrefuse (data) {
  return request({
    url: '/examine/refuse',
    method: 'post',
    data
  })
}
// 刷手审核列表
export function audituserlist (data) {
  return request({
    url: '/examine/audituserlist',
    method: 'post',
    data
  })
}
// 审核通过
export function audituser (data) {
  return request({
    url: '/examine/audituser',
    method: 'post',
    data
  })
}
// 银行卡审核列表
export function cooperationbankcardlist (data) {
  return request({
    url: '/cooperationbankcards/cooperationbankcardlist',
    method: 'post',
    data
  })
}
// 店铺列表
export function cooperationshoplist (data) {
  return request({
    url: '/cooperations/cooperationshoplist',
    method: 'post',
    data
  })
}
// 银行卡审核
export function examinebankcard (data) {
  return request({
    url: '/cooperationbankcards/examinebankcard',
    method: 'post',
    data
  })
}
// 商户列表
export function cooperationlist (data) {
  return request({
    url: '/cooperations/cooperationlist',
    method: 'post',
    data
  })
}
// 商家详情价格
export function shop_price_get (user) {
  return
  // request({
  //   url: '/cooperation/shop_price',
  //   method: 'get',
  //   data:{
  //     user:user
  //   }
  // })
}
// 商家详情价格
export function shop_price_post (data) {
  return request({
    url: '/cooperations/ShopPrice',
    method: 'post',
    data
  })
}
// 任务监控列表
export function monitoringlist (data) {
  return request({
    url: '/taskmonitor/monitoringlist',
    method: 'post',
    data
  })
}
// 角色列表
export function managePes (data) {
  return request({
    url: '/authority/managePes',
    method: 'get'
  })
}
// 换旺旺审核列表
export function Brushhand_ExamineTbName (data) {
  return request({
    url: '/Brushhand/ExamineTbName',
    method: 'post',
    data
  })
}
// 换旺旺审核通过 /Brushhand/RefuseTbName
export function Brushhand_ApprovedTbName (data) {
  return request({
    url: '/Brushhand/ApprovedTbName',
    method: 'post',
    data
  })
}
// 换旺旺审核拒绝
export function Brushhand_RefuseTbName (data) {
  return request({
    url: '/Brushhand/RefuseTbName',
    method: 'post',
    data
  })
}
// 角色新增/修改/删除
export function managePes_skill (data) {
  return request({
    url: '/authority/managePes',
    method: 'post',
    data
  })
}
// 权限列表
export function authoritylist (data) {
  return request({
    url: '/authority/authoritylist',
    method: 'get'
  })
}
// 权限新增/修改/删除
export function alterAuthority (data) {
  return request({
    url: '/authority/alterAuthority',
    method: 'post',
    data
  })
}
// 配置项列表
export function configlist (data) {
  return request({
    url: '/config/configlist',
    method: 'post',
    data
  })
}
// 银行卡充值总数
export function bancktopup (data) {
  return request({
    url: '/statistics/bancktopup',
    method: 'post',
    data
  })
}
// 支付宝充值总数
export function alitopup (data) {
  return request({
    url: '/statistics/alitopup',
    method: 'post',
    data
  })
}
// 支付宝列表
export function alitopuplist (data) {
  return request({
    url: '/statistics/alitopuplist',
    method: 'post',
    data
  })
}
// 银行卡列表
export function bancktopuplist (data) {
  return request({
    url: '/statistics/bancktopuplist',
    method: 'post',
    data
  })
}
//
export function AdminAlilog (page,pagesize) {
  return request({
    url: '/cooperationbankcards/AdminAlilog',
    method: 'post',
    data:{
      page:page,
      pagesize:pagesize
    }
  })
}
// 年月日收入
export function income (data) {
  return request({
    url: '/statistics/income',
    method: 'post',
    data
  })
}
// 年月日单数
export function ordernum (data) {
  return request({
    url: '/statistics/ordernum',
    method: 'post',
    data
  })
}
// 充值商户列表
export function ctconsumption (data) {
  return request({
    url: '/cooperations/ctconsumption',
    method: 'post',
    data
  })
}
// 任务列表
export function tasklist (data) {
  return request({
    url: '/taskmonitor/tasklist',
    method: 'post',
    data
  })
}
// 订单列表
export function taskorder (data) {
  return request({
    url: '/taskmonitor/taskorder',
    method: 'post',
    data
  })
}
// 评价审核列表
export function reviewEvaluate (data) {
  return request({
    url: '/task/reviewEvaluate',
    method: 'post',
    data
  })
}
// 评价审核列表审核
export function evaluateReview (data) {
  return request({
    url: '/task/evaluateReview',
    method: 'post',
    data
  })
}
// 卡任务
export function UpdateUserStatus (data) {
  return request({
    url: '/brushhand/UpdateUserStatus',
    method: 'post',
    data
  })
}
// 多旺旺列表
export function ExamineTbName (data) {
  return request({
    url: '/examine/ExamineTbName',
    method: 'post',
    data
  })
}
// 多旺旺通过
export function ExamineTbSuccess (data) {
  return request({
    url: '/examine/ExamineTbSuccess',
    method: 'post',
    data
  })
}
// 多旺旺拒绝 /api/Brushhand/GetTbNameList
export function ExamineTbNo (data) {
  return request({
    url: '/examine/ExamineTbNo',
    method: 'post',
    data
  })
}
// 多旺旺查询
export function GetTbNameList (data) {
  return request({
    url: '/Brushhand/GetTbNameList',
    method: 'post',
    data
  })
}
// 多旺旺修改冻结
export function UpTbNameList (data) {
  return request({
    url: '/Brushhand/UpTbNameList',
    method: 'post',
    data
  })
}
// 修改任务状态 /api
// export function configlist (data) {
//   return request({
//     url: '/config/configlist',
//     method: 'post',
//     data
//   })
// }
